swear off (something)

Translations
зарекаться от чего-то
He swore off junk food after the new year.
Он зарекся от фастфуда после Нового года.
Definitions
To formally decide to stop doing or using something, often for personal or health reasons.